/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ch04_02;

/**
 *
 * @author osa
 */
public class NothingIsWrong {
    public static void main(String[] args) {
        Rectangle myRect = new Rectangle();
        myRect.width = 40;
        myRect.height = 50;
        System.out.println("myRect's area is " + myRect.area());
    }
}

class Rectangle {
    public int width;
    public int height;

    public int area() {
        return width * height;
    }
}
